

export enum EInputEventType {
    MOUSEEVENT,// 鼠标事件
    MOUSEDOWN, // 鼠标按下事件
    MOUSEUP, // 鼠标抬起事件
    MOUSEMOVE, // 鼠标移动事件
    KEYBOARDEVENT, // 键盘事件
    KEYUP, // 键盘抬起事件
    KEYDOWN, // 键盘按下事件
    KEYPRESS, // 键盘按压事件
};

export class CanvasInputEvent {

    public altKey: boolean;

    public ctrlKey: boolean;

    public shiftKey: boolean;

    public type: EInputEventType;

    constructor(altKey: boolean, ctrlKey: boolean, shiftKey: boolean, type: EInputEventType) {
        this.altKey = altKey;
        this.ctrlKey = ctrlKey;
        this.shiftKey = shiftKey;
        this.type = type;
    }

}